<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<style type="text/css">
			.fabu-content{
				width: 100%;
				padding: 4% 5%;
				background-color: #FFFFFF;
				margin-top: 5%
			}
			.fobu-text{
				display: flex;
				width: 100%;
				height: auto;
				align-items: center;
		    }
			.fobu-text .fabu-img{
				width: 8%;
			}
			.fobu-text text{
				margin-left: 6%;
				font-size: 90%;
			}
			.fabu-content .fobu-text .to-img{
				position: absolute;
				right: 5%;
				width: 5%;
				margin-top: 1%;
			}
		</style>
	</head>

	<body>
		
		<header class="mui-bar mui-bar-nav" id="header">
		    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		    <h1 class="mui-title">更多</h1>
		</header>
		<div class="mui-content">
		    <div class="fabu-content">   	
		    	<div class="fobu-text">
		    		<img src="../../images/jz.png" class="fabu-img"/>
					<text>兼职发布</text>
			    	<img src="../../images/toserach.png" class="to-img"/>
		    	</div>
		    </div>
		    <div class="fabu-content">
		    	<div class="fobu-text">
		    		<img src="../../images/sping.png" class="fabu-img"/>
		    		<text>商品发布</text>
		    		<img src="../../images/toserach.png" class="to-img"/>
		    	</div>		    	
		    </div>
		    <div class="fabu-content">
		    	<div class="fobu-text">
		    		<img src="../../images/fabu.png" class="fabu-img"/>
			    	<text>我的发布</text>
			    	<img src="../../images/toserach.png" class="to-img"/>
		    	</div>
		    </div>
		</div>
		<script src="../../js/mui.min.js"></script>
		<script type="text/javascript" src="../../js/immersed.js" ></script>
		<script type="text/javascript">
			(function($){
				$.init({
				  gestureConfig:{
				   hold:true,//默认为false，不监听
				   release:true//默认为false，不监听
				  }
				});
				$.plusReady(function(){
					starbar();
					plus.navigator.setStatusBarStyle('dark');
	
					//点击返回事件
					var old_back = mui.back;
					$.back = function() {
						old_back();
						plus.navigator.setStatusBarStyle('light');
					}
					var news = [];
					mui.ajax('https://www.lunyuwang.com/taskController/beforePublishGood', {
						data: {
							lyuser_Card: plus.storage.getItem("card")
						},
						crossDomain: true, //强制使用5+跨域
						dataType: 'json', //服务器返回json格式数据
						type: 'get', //HTTP请求类型
						timeout: 10000, //超时时间设置为10秒；
						//processData: false,
						headers: {
							'Content-Type': 'application/x-www-form-urlencoded'
						},
						success: function(data) {
							var allcontentt = data.user;
							news[0] = allcontentt.lyuser_Collage;
							news[1] = allcontentt.lyuser_Tel;
							news[2] = allcontentt.lyuser_Card;
						},
						error: function(xhr, type, errorThrown) {
							mui.toast('发布异常!')
						}
					})
					$('.mui-content').on('touchstart','.fabu-content',function(){
						this.style.cssText = 'background-color: #F7F7F7'
					},false);
					$('.mui-content').on('touchend','.fabu-content',function(){
						this.style.cssText = 'background-color: #FFFFFF'
					},false);
					$('.mui-content').on('tap','.fabu-content',function(){
						var textt = this.getElementsByTagName('text')[0].textContent
						if(textt == "我的发布"){
							$.openWindow({
								url: 'mypublish.html',
								id: 'mypublish.html' 
						    })
						}else if(textt == "兼职发布"){
							$.openWindow({
								url: 'jianzhifabu.html',
								id: 'jianzhifabu.html' 
						    })
						}else{
							$.openWindow({
								url: 'goods.html',
								id: 'goods.html' ,
								extras:{
									news: news
								}
						    })
						}
						
					})				
				})
				
				window.addEventListener('backfabu', function(event) {
					$.plusReady(function(){
						plus.navigator.setStatusBarStyle('dark');
					})
				})
			})(mui);
		</script>
	</body>

</html>